package br.inf.mensageiro.context;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import br.inf.mensageiro.tree.CustomMutableTreeNode;

public class ApplicationContext {
	
	private static ApplicationContext applicationContext;
	private final Map<String,String> hosts = new HashMap<String,String>();
	private Map<String,CustomMutableTreeNode> nodeMap = new HashMap<String,CustomMutableTreeNode>();
	private Set<String> localHost;
	private String alias;
	
	public static ApplicationContext getInstance(){
		if(applicationContext==null){
			applicationContext = new ApplicationContext();
		}
		return applicationContext;
	}


	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public Map<String, String> getHosts() {
		return hosts;
	}
	
	public void setLocalHost(Set<String> localHost) {
		this.localHost = localHost;
	}

	public Set<String> getLocalHost() {
		return localHost;
	}

	public Map<String, CustomMutableTreeNode> getNodeMap() {
		return nodeMap;
	}
	
}
